package msu.ml.core.xml;

import msu.ml.core.*;
import msu.ml.data.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import java.util.*;

/**
 * @author Reginald M Mead
 * @version 1.0
 */
public class ClassifierSerializationPostProcessorParser implements IPostProcessorParser
{
   public IDataPostProcessor parse(Element element)
   {
      try
      {
         if(ApplicationSettings.getInstance().getConfig("verbose").equals("true"))
            System.out.println("Classifier Serializer Post Processor");

         ClassifierSerializerPostProcessor processor = new ClassifierSerializerPostProcessor(element.getAttribute("file_name"));
         return processor;
      }
      catch(Exception e)
      {
         System.out.println(e.getStackTrace());
         return null;
      }
   }
}
